/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - FiltrosService.as.
 */
package ws.filtros.service
{
import cl.xintec.utils.Webservice10;

import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.WebServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;

import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.soap.mxml.Operation;
import mx.rpc.soap.mxml.WebService;

import ws.filtros.vo.ErrorRequest;
import ws.filtros.vo.Error_type;
import ws.filtros.vo.OrigenRequest;

[ExcludeClass]
internal class _Super_FiltrosService extends com.adobe.fiber.services.wrapper.WebServiceWrapper
{
    
    // Constructor
    public function _Super_FiltrosService()
    {
        // initialize service control
        _serviceControl = new mx.rpc.soap.mxml.WebService();
        var operations:Object = new Object();
        var operation:mx.rpc.soap.mxml.Operation;

        operation = new mx.rpc.soap.mxml.Operation(null, "origenesOp");
         operation.resultElementType = String;
        operations["origenesOp"] = operation;

        operation = new mx.rpc.soap.mxml.Operation(null, "erroresOp");
         operation.resultElementType = ws.filtros.vo.Error_type;
        operations["erroresOp"] = operation;

        _serviceControl.operations = operations;
        try
        {
            _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
        }
        catch (e: Error)
        { /* Flex 3.4 and earlier does not support the convertResultHandler functionality. */ }


        preInitializeService();
        model_internal::initialize();
    }
    
    //init initialization routine here, child class to override
    protected function preInitializeService():void
    {


        _serviceControl.service = "Filtros";
        _serviceControl.port = "FiltrosSOAP";
        //wsdl = "http://localhost:7001/AdministracionWS/ws/WSL_BUC_Filtros.jws?WSDL";
		wsdl = Webservice10.getURL("ws/WSL_BUC_Filtros.jws?WSDL");
		_serviceControl.endpointURI = Webservice10.getURL("ws/WSL_BUC_Filtros.jws");
        model_internal::loadWSDLIfNecessary();
    }
    

    /**
      * This method is a generated wrapper used to call the 'origenesOp' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function origenesOp(origenRequest:ws.filtros.vo.OrigenRequest) : mx.rpc.AsyncToken
    {
        model_internal::loadWSDLIfNecessary();
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("origenesOp");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(origenRequest) ;
        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'erroresOp' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function erroresOp(errorRequest:ws.filtros.vo.ErrorRequest) : mx.rpc.AsyncToken
    {
        model_internal::loadWSDLIfNecessary();
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("erroresOp");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(errorRequest) ;
        return _internal_token;
    }
     
}

}
